package net.lcqf.tcp.game.match.model;

import io.netty.channel.Channel;
import lombok.Data;

import java.io.Serializable;

/**
 * TODO 模拟玩家，后期要改
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2021-2025 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2025/3/7 10:18
 * // +----------------------------------------------------------------------
 */

@Data
public class MatchPlayer implements Serializable {

    private final static long serialVersionUID = 1L;

    private Integer id;

    public String userName;

    private String avatar;

    private Channel channel;

    private String channelId;

    private volatile boolean ready;

    private volatile boolean selectHero;

    private volatile Integer heroId;

    // 基础ELO分
    private int elo;

    // 近20场胜率
    private double winRate;

    // 排名
    private int rank;

    // 加入队列的时间
    private long joinTime;
}
